package com.train.trainmanage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.train.trainmanage.model.RelationDirectionModel;
@Mapper
public interface RelationDirectionModelMapper {
    int deleteByPrimaryKey(Integer relationId);

    int insert(RelationDirectionModel record);

    int insertSelective(RelationDirectionModel record);

    RelationDirectionModel selectByPrimaryKey(Integer relationId);

    int updateByPrimaryKeySelective(RelationDirectionModel record);

    int updateByPrimaryKey(RelationDirectionModel record);
    
    RelationDirectionModel selectByMap(Map<String, Object> map);
    
    List<Integer> listGoIdByComeId(@Param(value="comeId")Integer comeId);
}